I didnt add it to the DbContext, because it is supposed to be a virtual property of User.
Hello, I also have an issue related to the error above. I am trying to use the repository entity pattern, but i keep having the error above. The actual error is Can't create component 'Users.UserProfileAppService' as it has dependencies to be satisfied.
'Users.UserProfileAppService' is waiting for the following dependencies:
public class UserProfileAppService : IUserProfileAppService
{
private readonly IRepository<UserProfile> _userProfileRepository;
public UserProfileAppService(IRepository<UserProfile> userProfileRepository)
{
_userProfileRepository = userProfileRepository;
}
}
UserProfile inherits from Entity; IUserProfileAppService inherits from IApplicationService